<header>
    <div class="top">
        <div class="cb mc">
            <template v-if="user.user_id">
                <div class="user-action logged fr">
                    <a class="item" href="dashboard/">进入工作台</a>
                    <a class="item" v-on:click="logout">退出</a>
                </div>
            </template>
            <template v-else>
                <div class="user-action fr" >
                    <a class="item" href="login.html">登录</a>
                    <a class="item" href="register.html">注册</a>
                </div>
            </template>
        </div>
    </div>


</header>